#include "Computer.hpp"
#include <iostream>
using std::cout;
using std::endl;

void Computer::setBrand(const char * brand){//设置品牌
    strcpy(_brand, brand); 
}

void Computer::setPrice(float price){//设置价格
    _price = price;
}

void Computer::print(){//打印信息
    cout << "brand:" << _brand << endl;
    cout << "price:" << _price << endl;
}
